package com.itheima.day08.myHashSet.test3;

import java.util.HashSet;

public class Test {
    public static void main(String[] args) {
        HashSet<Student> hs = new HashSet<>();
        Student s1 = new Student("张三", 23);
        Student s2 = new Student("李四", 24);
        Student s3 = new Student("张三", 23);
        hs.add(s1);
        hs.add(s2);
        hs.add(s3);
        for (Student h : hs) {
            System.out.println(h + " ");
        }
    }
}
